import type { App } from "vue";
import { ControlType, registerControlProvider } from "@ibiz-template/runtime";
import IBizSearchBarControl from "./i-biz-search-bar-control.vue";
import { SearchBarProvider } from "./i-biz-search-bar-control.provider";

export const IBizSearchBar = {
  install(v: App) {
    v.component("IBizSearchBarControl", IBizSearchBarControl);
    registerControlProvider(
      ControlType.SEARCHBAR,
      () => new SearchBarProvider()
    );
  },
};
